<link rel="stylesheet" href="/plugins/bootstrap-3.3.7-dist/css/bootstrap.min.css" >
<link rel="stylesheet" href="/plugins/fileUpload/fileinput.min.css" >
<script src="/plugins/jquery/jquery-3.2.1.min.js"></script>
<script src="/plugins/fileUpload/fileinput.min.js"></script>
<script src="/plugins/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
<script src="/plugins/fileUpload/zh.js"></script>
<script>
	/* $("#upload").fileinput({
		language : 'zh',
		uploadUrl : "/a/b",
		uploadAsync : true,
		maxFileCount : 2,
		showBrowse : false,
		showClose : false,
		browseOnZoneClick : true
	}).on("fileuploaded", function(event, data) {
		$("#upload").attr("value", data.response.path);
	}); */

	$("#upload").fileinput({
		language : 'zh',
		uploadUrl : "/common/uploadFile",
		uploadAsync : true,
		maxFileCount : 2,
		showBrowse : false,
		showUpload : false, //是否显示上传按钮,跟随文本框的那个
		showRemove : false, //显示移除按钮,跟随文本框的那个
		showCaption : false,
		showClose : false,
		browseOnZoneClick : true
	}).on("fileuploaded", function(event, data) {
		$(".kv-upload-progress").hide();
		$(".file-drop-zone").css('border', '0px');
		$("#upload").attr("value", data.response.path);
	});
	$('#upload').on('filebatchselected', function(event, files) {
		$('#upload').fileinput("upload");//图片引入自动上传操作  
	});
</script>
